import axios from 'axios'

export function getSlider() {
  let url = '/sliderList'
  return axios.get(url).then((res) => {
    return Promise.resolve(res)
  }).catch((err) => {
    console.log(err)
  })
}

export function getDoctor() {
  let url = '/users/doctor'
  return axios.get(url).then((res) => {
    return Promise.resolve(res)
  }).catch((err) => {
    console.log(err)
  })
}
